package com.jingtao.product.domain.vo;

import com.jingtao.product.domain.Product;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName:
 * @Description:
 * @Author: zengfanzhen
 * @Date: 2024/3/31 19:10:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QueryProductVo {
    @ApiModelProperty(value = "商品名称")
    @NotBlank
    private String name;

    @ApiModelProperty(value = "货号")
    @NotBlank
    private String productSn;

    @ApiModelProperty(value = "品牌分类id")
    @NotNull
    private Long productCategoryId;

    @ApiModelProperty(value = "品牌id")
    @NotNull
    private Long brandId;

    @ApiModelProperty(value = "上架状态：0->下架；1->上架")
    @NotNull
    @Min(0)
    @Max(1)
    private Integer publishStatus;

    @ApiModelProperty(value = "审核状态：0->未审核；1->审核通过")
    @NotNull
    @Min(0)
    @Max(1)
    private Integer verifyStatus;

    /**
     * 分页参数
     */
    @NotNull
    private Integer pageNum;
    @NotNull
    private Integer pageSize;
}
